home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / cclib / include / ccfunc.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  3KB  |  179 lines

  1. #ifndef CCFUNC_H
  2. #define CCFUNC_H 1
  3.  
  4. #ifndef ANSIC
  5. #define ANSIC 1
  6. #endif
  7.  
  8. #ifndef STAT_H
  9. #include "stat.h"
  10. #endif
  11.  
  12. #ifndef STDLIST_H
  13. #include "stdlist.h"
  14. #endif
  15.  
  16. #ifndef IOLIB_H
  17. #include "iolib.h"
  18. #endif
  19.  
  20. #define NOMACROS 1
  21.  
  22. #ifndef STDIO_H
  23. #include "stdio.h"
  24. #endif
  25.  
  26. #ifndef TIME_H
  27. #include "time.h"
  28. #endif
  29.  
  30. #ifndef STRING_H
  31. #include "string.h"
  32. #endif
  33.  
  34. #ifndef STDLIB_H
  35. #include "stdlib.h"
  36. #endif
  37.  
  38.  
  39. #ifdef ANSIC
  40.  
  41. #ifndef STDARG_H
  42. #include "stdarg.h"
  43. #endif
  44.  
  45. /* for compilers that support function prototypes */
  46.  
  47. long SetSTDIO(void);
  48. long SetupSTDIO( FILE **, FILE **, FILE **, long *, long *, char **, void *,
  49.          long, char *, struct WBStartup *wbm, void (*)(long) );
  50. task_UserData *GetSTDIO(void);
  51. void ClearSTDIO(void);
  52. void closeall(void);
  53. void SetAbortFunc(ABORT_FUNC);
  54. void ClearAbortFunc(void);
  55. void cli_parse(task_UserData *, long, char *);
  56. long wb_parse(task_UserData *, struct WBStartup *);
  57. char *scdir(char *);
  58. void scdir_clean(void);
  59. void _exit(long);
  60. void exit(long);
  61. long open(char *,unsigned long,unsigned long);
  62. long close(long);
  63. long read(long, char *, long);
  64. long write(long, char *, long);
  65. long creat(char *, unsigned long);
  66. long lseek(long, long, unsigned long);
  67. long isatty(long);
  68. long access(char *, long);
  69. FILE *fdopen(long,char *);
  70. void getbuff(FILE *);
  71. char *mktemp(char *);
  72. long putw(unsigned long,FILE *);
  73. long puterr(long);
  74. long getw(FILE *);
  75.  
  76.  
  77. /* memory allocation functions */
  78. void *_alloc(task_UserData *,long,long);
  79. void _fre(task_UserData *,void *);
  80. void _freall(task_UserData *);
  81. void *sbrk(long);
  82. void *heap_alloc(unsigned long);
  83. void heap_free(void *);
  84. void be_free(void *,unsigned long);
  85. unsigned long malloc_size(void *);
  86. void freeall(void);
  87.  
  88. /* format conversion functions */
  89. void ltoa(long, char *);
  90. void stoa(long, char *);
  91.  
  92. /* sorting functions */
  93. void vquicksort(unsigned long,long (*)(unsigned long,unsigned long),
  94.      void (*)(unsigned long, unsigned long));
  95. void quicksort(unsigned long, long (*)(unsigned long,unsigned long,void *),
  96.      void (*)(unsigned long,unsigned long,void *),void *);
  97.  
  98. #else
  99.  
  100. /* for compilers that do not support function prototypes */
  101.  
  102. long SetSTDIO();
  103. long SetupSTDIO();
  104. task_UserData *GetSTDIO();
  105. void ClearSTDIO();
  106. void closeall();
  107. void SetAbortFunc();
  108. void ClearAbortFunc();
  109. void cli_parse();
  110. long wb_parse();
  111. char *scdir();
  112. void _exit();
  113. void exit();
  114. long open();
  115. long close();
  116. long unlink();
  117. long rename();
  118. long read();
  119. long write();
  120. long creat();
  121. long lseek();
  122. long isatty();
  123. long access();
  124. FILE *fopen();
  125. FILE *freopen();
  126. long fclose();
  127. FILE *fdopen();
  128. void getbuff();
  129. long setvbuf();
  130. char *mktemp();
  131. char *tmpnam();
  132. FILE *tmpfile();
  133. long putc();
  134. long aputc();
  135. long getc();
  136. long agetc();
  137. long ungetc();
  138. long putw();
  139. long puts();
  140. long puterr();
  141. size_t fwrite();
  142. long perror();
  143. long fseek();
  144. long ftell();
  145. long fflush();
  146. long getw();
  147. size_t fread();
  148. char *gets();
  149. char *fgets();
  150. long fputs();
  151. long scanf();
  152. long printf();
  153. long fscanf();
  154. long fprintf();
  155. long sscanf();
  156. long sprintf();
  157. long vprintf();
  158. long vfprintf();
  159. long vsprintf();
  160. long fgetpos();
  161. long fsetpos();
  162. void *_alloc();
  163. void _fre();
  164. void _freall();
  165. void *sbrk();
  166. void *heap_alloc();
  167. void heap_free();
  168. void be_free();
  169. unsigned long malloc_size();
  170. void freeall();
  171. void ltoa();
  172. void stoa();
  173. void vquicksort();
  174. void quicksort();
  175. #endif
  176.  
  177. #endif
  178.  
  179.